package com.baseframe.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baseframe.system.entity.BasePermission;
import com.baseframe.system.mapper.BasePermissionMapper;
import com.baseframe.system.service.BasePermissionService;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**

* @description 针对表【base_permission(权限表)】的数据库操作Service实现
* @createDate 2023-05-20 19:25:46
*/
@Service
@AllArgsConstructor
public class BasePermissionServiceImpl extends ServiceImpl<BasePermissionMapper, BasePermission>
    implements BasePermissionService{

    @Override
    public List<BasePermission> getPermissionsByRoleId(Long roleId) {
        return this.getBaseMapper().selectPermissionsByRoleId(roleId);
    }
}




